/**@功能:软库SM2加密解密检测*@参数:void*@返回:int, 0 : SUCCESS; ~0 : FAILED*/int SoftSM2Check();/**@功能:软库SM2签名验签检测*@参数:void*@返回:int, 0 : SUCCESS; ~0 : FAILED*/int SoftSM2SignCheck();/**@功能:软库SM3检测*@参数:void*@返回:int, 0 : SUCCESS; ~0 : FAILED*/int SoftSM3Check();/**@功能:软库SM4检测*@参数:void*@返回:int, 0 : SUCCESS; ~0 : FAILED*/int SoftSM4Check();
int _tmain(int argc, _TCHAR* argv[]){if (0 == SoftSM2SignCheck()){printf("SoftSM2 Sign and Verify check PASS...\n");}else{printf("SoftSM2 Sign and Verify check FAILED...\n");}if (0 == SoftSM2Check()){printf("SoftSM2 Encrypt and Decrypt check PASS...\n");}else{printf("SoftSM2 Encrypt and Decrypt check FAILED...\n");}if (0 == SoftSM3Check()){printf("SoftSM3 check PASS...\n");}else{printf("SoftSM3 check FAILED...\n");}if (0 == SoftSM4Check()){printf("SoftSM4 check PASS...\n");}else{printf("SoftSM4 check FAILED...\n");}system("pause");return 0;}
评论